Application Property 

The Application property returns the name of the active application, which is the OLE Messaging Library,  OLE/Messaging . Read-only.

Syntax

object.Application

Data Type

String

Remarks

The Application property always contains the string  OLE/Messaging .

Note that this behavior for the Microsoft OLE Messaging Library differs from other implementations of OLE Automation servers. Many OLE Automation servers are based on executables (files that take the extension .EXE) and return an object value. The OLE Messaging Library is based on the MAPI subsystem, which is implemented by dynamic link libraries (files that take the extension .DLL).

As of version 1.1, the OLE Messaging Library is an in-process server, residing in a .DLL file and linking directly with the calling modules. In comparison with the former local server architecture, this removes the need for RPCs across process boundaries and greatly improves the performance of OLE Messaging Library calls.

Example

' Function: Session_Application

' Purpose: Display the Application property of the Session object

' See documentation topic: Application property

Function Session_Application()

Dim objSession As Object

    ' error handling

    Set objSession = CreateObject("MAPI.Session")

    If Not objSession Is Nothing Then

        MsgBox "Session s Application property = " _

            & objSession.Application

    End If

    ' error handling

End Function

 

See Also

Version Property (Session Object)VLKW1Q